<app-back-btn></app-back-btn>
<div class="page-title">
  <span class="title" *ngIf="!this.code">添加TestOpt</span>
  <span class="title" *ngIf="this.code">修改TestOpt</span>
</div>

<div class="panel panel-body">
  <form nz-form [formGroup]="validateForm" class="form-wrap" (submit)="addTestOpt($event)">
    <h2 class="subtitle">TestOpt信息</h2>

    <!--routerUrl start-->
    <nz-form-item>
      <nz-form-label [nzSm]="7" nzFor="routerUrl" nzRequired> 路由</nz-form-label>
      <nz-form-control [nzSm]="10" [nzValidateStatus]="getFormControl('routerUrl')">
        <input nz-input formControlName="routerUrl" type="text" id="routerUrl" placeholder="路由">
        <nz-form-explain *ngIf="getFormControl('routerUrl').dirty&&getFormControl('routerUrl').errors">
          <ng-container *ngIf="getFormControl('routerUrl').hasError('required')">请输入路由</ng-container>
        </nz-form-explain>
      </nz-form-control>
      <nz-form-control [nzSm]="7" class="font12 pl color-gray">
        路由
      </nz-form-control>
    </nz-form-item>

    <!--表单底部start-->
    <nz-form-item class="action-button">
      <nz-form-control class="text-center">
        <button nz-button nzSize="large" [nzType]="'primary'" class="pl-30 pr-30" [nzLoading]="isConfirmLoading">
          {{'Btn0009'| translate}}
        </button>
      </nz-form-control>
    </nz-form-item>
    <!--表单底部end-->
  </form>

</div>
